package com.frame.test;

import com.frame.service.A;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author: shiyj
 * @Date: Created in 13:53 2023/10/11
 * @Description:
 * @Modified By:
 */
public class MyTest1 {

	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("spring1.xml");
		A bean = (A) context.getBean("aFactoryBean");
		System.out.println(bean);
	}

}
